<?php

class MsgConst
{

    //返回数据
    const RETURN_CODE_SUCCESS = 0; //返回成功
    const RETURN_CODE_ERROR = 1;//返回失败
    const RETURN_SUCCESS = "success";//成功信息


    //验证短信类型
    const SMS_TYPE_REGISTER = 0; //用户注册验证短信
    const SMS_TYPE_LOGIN = 1; //用户登录验证短信
    const SMS_TYPE_RESET = 2; //用户重置密码验证短信

    const SMS_TYPE_REGISTER_WORKER = 3; //工人注册验证短信
    const SMS_TYPE_LOGIN_WORKER = 4; //工人登录验证短信
    const SMS_TYPE_RESET_WORKER = 5; //工人重置密码验证短信


    //app类型
    const APP_TYPE_USER = 0; //用户端APP
    const APP_TYPE_WORKER = 1; //工人端APP

    //sms
    const SMS_EXPIRE_TIME = 300 ; //验证码过期时间

    //后台用户
    const ADMIN_USER_DEFAULT_PASSWORD = "123456";//默认密码

    //log种类
    const LOG_TYPE_NORMAL = "normal"; //log种类－正常
    const LOG_TYPE_ERROR = "error"; //log种类－错误
    const LOG_TYPE_WARNING = "warning"; //log种类－警告
    const LOG_TYPE_DEBUG = "debug"; //log种类－DEBUG


    //工人认证
    const WORKER_VERIFY_STATUS_NOT_SUBMIT = "0"; //未提交审核
    const WORKER_VERIFY_STATUS_SUBMITING = "2"; //审核中
    const WORKER_VERIFY_STATUS_VERIFIED = "1"; //审核成功
    const WORKER_VERIFY_STATUS_DENIED = "3"; //审核失败


    //工号
    const WORKER_NUM_YEAR = "16";

    //管理员默认id

    const ADMIN_DEFAULT_NUM = 2;

    //session type
    const SESSION_TYPE_UNKNOWN = 0; //session 未知
    const SESSION_TYPE_USER = 1; //session 种类
    const SESSION_TYPE_WORKER = 2; //session 工人
    const SESSION_TYPE_ADMIN = 3; //session 后台

    //withdraw type
    const WITHDRAW_TYPE_SUBMITING = "submiting"; //提现申请中
    const WITHDRAW_TYPE_ACCEPTED = "accepted"; //提现成功
    const WITHDRAW_TYPE_FAILED = "failed"; //提现失败

    const WITHDRAW_FEE = 5; //提现手续费
    const WITHDRAW_MIN_AMOUNT = 100;//最低提现金额
    const WITHDRAW_FEE_USER = 5; //提现手续费 用户端
    const WITHDRAW_MIN_AMOUNT_USER = 100;//最低提现金额 用户端


    //bankcash type
    const BANKCASH_LOG_TYPE_WITHDRAWING_SUBMITING = "withdraw_submiting";//提现审核中
    const BANKCASH_LOG_TYPE_WITHDRAWING_ACCEPTED = "withdraw_accepted"; //提现成功
    const BANKCASH_LOG_TYPE_WITHDRAWING_FAILED = "withdraw_failed"; //提现失败
    const BANKCASH_LOG_TYPE_INCOME_ORDER = "income_order";//收入订单
    const BANKCASH_LOG_TYPE_INCOME_PURSE = "income_purse";//收入红包
    const BANKCASH_LOG_TYPE_INCOME_PLATFORM = "income_platform";//收入平台

    //订单状态
    const ORDER_STATUS_WAITING_ACCEPTED = "waiting_accepted"; //等待工人接单
    const ORDER_STATUS_ACCEPTED =  "accepted"; //已接单
    const ORDER_STATUS_CANCEL =  "canceled"; //已取消
    const ORDER_STATUS_REFUSED =  "refused"; //已拒单
    const ORDER_STATUS_DOWNPAY =  "downpay"; //已付定金
    const ORDER_STATUS_CONFIRMED =  "confirmed"; //已确定
    const ORDER_STATUS_WORKING =  "working"; //正在进行
    const ORDER_STATUS_END =  "ending"; //正在进行

    const ORDER_STATUS_COMPOSED_END = "end";//组合状态－工人端 已完成
    const ORDER_STATUS_COMPOSED_PROCESSING = "processing";//组合状态－工人端 平台处理中

    const ORDER_STATUS_COMPOSED_MY_WORKERS = "myworkers"; //组合状态－用户端 我预约的工人
    const ORDER_STATUS_COMPOSED_WORKING = "working"; //组合状态－用户端 进行中
    const ORDER_STATUS_COMPOSED_ENDED = "ended"; //组合状态－用户端 结束



    const ORDER_DOWNPAY_RATIO = 0.1;//定金支付比例
    const ORDER_FIRSTPAY_RATIO = 0.3;//第一笔项目款支付比例
    const ORDER_SECONDPAY_RATIO = 0.3;//第二笔项目款支付比例
    const ORDER_THIRDPAY_RATIO = 0.3;//第三笔项目款支付比例

    //任务相关
    const TASK_INFO_EMPTY = 0; //无任务
    const TASK_INFO_HAS = 1; //有任务
    const TASK_INFO_LATER = 2; //以后的任务


    //工人搜索排序相关

    const WORKER_SORT_TYPE_DEFAULT = -1;//默认排序
    const WORKER_SORT_TYPE_RATING_DESC = 1;//评分倒序
    const WORKER_SORT_TYPE_RATING_ASC = 2;//评分升序
    const WORKER_SORT_TYPE_PRICE_DESC = 3;//价格倒序
    const WORKER_SORT_TYPE_PRICE_ASC = 4;//价格升序
    const WORKER_SORT_TYPE_DIST_DESC = 5;//距离倒序
    const WORKER_SORT_TYPE_DIST_ASC = 6;//距离升序


    //预算模块状态
    const BUDGET_STATUS_INIT =0;
    const BUDGET_STATUS_FINISHINPUT =1;

    const BUDGET_INPUT_WIDTH = "width"; //宽
    const BUDGET_INPUT_length = "length"; //长
    const BUDGET_INPUT_height = "height"; //高


    //预算模块－固定信息

    const BUDGET_GROUNDTYPE_BOARD = 1 ;//地板
    const BUDGET_GROUNDTYPE_TILE = 2 ;//地砖
    const BUDGET_WALLTYPE_PAPER = 3 ;//墙纸
    const BUDGET_WALLTYPE_TILE = 4 ;//墙砖
    const BUDGET_WALLTYPE_PAINT = 5 ;//乳胶漆


    //预算模块－  材料种类
    const BUDGET_TYPE_MAIN_ID = 1 ;//主材
    const BUDGET_TYPE_ASSIST_ID = 2;//辅材
    const BUDGET_TYPE_INSTALL_ID = 12;//成品安装


    const BUDGET_TYPE_SUB_GROUND_TYPE = 7 ;//地面材料
    const BUDGET_TYPE_SUB_WALL_ID = 8; //墙面材料

    //预算房型
    const BUDGET_HOUSE_TYPE_BED_ROOM= 1; //卧室
    const BUDGET_HOUSE_TYPE_LIVING_ROOM= 2; //客厅
    const BUDGET_HOUSE_TYPE_KITCHEN= 3; //厨房
    const BUDGET_HOUSE_TYPE_TOLIET= 4; //卫生间
    const BUDGET_HOUSE_TYPE_BALCONY= 5; //阳台









    //用户
    const DEFAULT_AVATAR_URL = "http://zxjl-user.b0.upaiyun.com/study/93a723db7e66f546ac3daf0becb79d67.jpeg";


    //商城--规格类型
    const MALL_SPEC_TYPE_ENUM = 0; //枚举类型
    const MALL_SPEC_TYPE_NUM = 1; //数值类型


    //商品搜索排序相关
    const MALLGOODS_SORT_TYPE_DEFAULT = 1;//默认排序
    const MALLGOODS_SORT_TYPE_PRICE_DESC = 2;//价格倒序
    const MALLGOODS_SORT_TYPE_PRICE_ASE = 3;//价格升序


    //订单状态
    const MALLORDER_STATUE_WAIT_PAYMENT = 0;//待付款
    const MALLORDER_STATUE_ALREADY_PAYMENT = 1;//已付款
    const MALLORDER_STATUE_ALREADY_RECEIVE = 2;//已接单
    const MALLORDER_STATUE_ALREADY_SEND = 3;//已发货
    const MALLORDER_STATUE_ALREADY_COMPLETE = 4;//已完成交易

    //订单付款方式
    const MALLORDER_PAYBY_UNDEFINE = -1;//未定义
    const MALLORDER_PAYBY_PLATFORM = 0;//只用平台金额
    const MALLORDER_PAYBY_QUICK_PAYMENT = 1;//只用快捷支付 或 一部分金额用平台金额一部分用快捷支付
    const MALLORDER_PAYBY_ALIPAY = 2;//只用支付宝 或 一部分金额用平台金额一部分用快捷支付

    //订单折扣
    const MALLORDER_PARENT_DISCOUNT = 1;//主订单折扣
    const MALLORDER_CHILD_DISCOUNT = 1;//子订单折扣















}

